<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of az_log
 *
 * @author Shark
 */
function add_log($name, $tname, $iname, $userId) {
    $time = time();
    $sql = "INSERT INTO az_log(log_name,log_tbname,log_iname,log_date,log_user_id) VALUES('" .
            $name . "','" . $tname . "','" . $iname . "','" . date("Y-m-d H:i:s", $time) . "','" . $userId . "')";
    $result = mysql_query($conn, $sql) or die(mysql_error($conn));
}

?>
